#include "my.pb.h"
#include<fstream>
int main()
{
    std::fstream fs("Contacts.bin",std::ios::binary | std::ios::app | std::ios::out|std::ios::in);
    if(!fs.is_open())
    {
        std::cerr<<"文件打开失败\n";
    }
    Person pe;
    pe.set_test_unkown(124);
    pe.SerializePartialToOstream(&fs);
    fs.close();
    return 0;
}